function GetID(ID) {
  if (document.all) {
    return document.all[ID];
  } else if (document.getElementById) {
    return document.getElementById(ID);
  } else {
    return undefined;
  }
}

function MoveAddrsTo(Suburb, PostCode) {
  alert ("B"); 

  var QL = "QuickList"; if (!QL) { return; }
  alert (" MoveAddrsTo(Suburb,PostCode) "); 
//  var FSuburb = GetID(Suburb); if (!FSuburb) { return; }
//  alert ("B"); 
//  var FPostCode = GetID(PostCode); if (!FPostCode) { return; }
//  alert ("C"); 

  var FSuburb = Suburb ; if (!FSuburb) { return; }
  alert (FSuburb); 
  var FPostCode = PostCode; if (!FPostCode) { return; }
  alert (FPostCode); 


  var re = new RegExp('(^\\d+),(.*)$');
  alert("xxx");

  var QLO = QL.options;
  for (var i = 0, k = 0; i < QL0.length && k < 100; k++) {
    if (QLO[i].selected) {
      var Matches = re.exec(QLO[i].value);
	    alert ("Matach!!"); 

      if (Matches[0]) {
	    alert (RegExp.$2 + " " + RegExp.$1); 
        FSuburb.value =  RegExp.$2;
        FPostCode.value =  RegExp.$1;
      }
      //QLO[i] = null;
    } else {
      i++;
	  alert("else");
    }
  alert("end if");

  }
  alert("end loop");
  return false;
}